import React from 'react';

function Child(props) {
    console.log("child->render");
    return (
        <div>
            <h3 onClick={()=>props.changeUserName("*")}>Child->{props.userName}</h3>
        </div>
    );
}

export default React.memo(Child);